package shark.tenant.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@TableName(value = "sys_tenant")
public class SysTenant {

    /**
     * 租户id
     */
    private String id;

    /**
     * 租户名称
     */
    private String name;

    /**
     * 别名
     */
    private String alias;

    /**
     * 租户地址
     */
    private String url;

    /**
     * 管理员账号id
     */
    private String administratorId;

    /**
     * schema名称
     */
    private String schemaName;

    /**
     * 租户状态
     */
    private Integer status;

    /**
     * 创建者
     */
    private String createBy;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    private String updateBy;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    private String remarks;

    private Integer delFlag;
}
